public class Max {
    public static int max2(int m,int n) {
        return m>n?m:n;
    }
    public static int max3(int x,int y,int z) {
        int c = max2(x,y);
        return c>z?c:z;
    }
    public static void main(String[] args) {
        int a = 2;
        int b = 4;
        int c = 5;
        int max = max3(a,b,c);
        System.out.println(max);
    }
}
